//更新刷新要素
function updateNearestFeatureStyles() {

    var camera = scene.get_camera();
    //高度大于500m，不刷新
    // console.log("heigth:"+camera.get_altitude());
    if(camera.get_altitude()>5000)return;
	for (var i in managerFeature) {
		managerFeature[i].distance = Math.abs(camera.get_longitude() - managerFeature[i].x) * Math.abs(camera.get_longitude() - managerFeature[i].x) + Math.abs(camera.get_latitude() - managerFeature[i].y) * Math.abs(camera.get_latitude() - managerFeature[i].y);
	}

	var index = -1;
	var distance = 1000;

	for (var j in managerFeature) {
		if (managerFeature[j].distance < distance) {
			index = j;
			distance = managerFeature[j].distance;
		}
	}


	var nearFeature = trackingLayer.get_item(managerFeature[index].name);

	var style = nearFeature.get_style3D();
	var myUrl = null;
	if (managerFeature[index].type == "S") {
		myUrl = baseStationUrlPrefix + managerFeature[index].code + Math.uuid() + ".png";
	} else {
		myUrl = baseWaterplantUrlPrefix + managerFeature[index].code + Math.uuid() + ".png";
	}
	// console.log("index:" + index);
	// console.log("distance:" + distance);
	// console.log("longitude:" + scene.get_camera().get_longitude());
	// console.log("latitude:" + scene.get_camera().get_latitude());
	// console.log("url:" + myUrl);
	var paths = [myUrl, myUrl, myUrl, myUrl];
	style.set_sideTextureFiles(paths);
	trackingLayer.refresh();
	//nearFeature.updateData();


}